#!/usr/bin/node

const log = console.log,
      fs = require('fs'),
      src = process.argv[2],
      dts = process.argv[3];

try{
  fs.writeFileSync(dts,fs.readFileSync(src));
  //修改权限
  fs.chmodSync(dts, fs.statSync(src).mode);
}catch(e){
  log(e.message);
  process.exit(1);
}
